<template>
  <ant-modal
    modalWidth="576"
    modalHeight="500"
    :visible="open"
    :modal-title="formTitle"
    :adjust-size="true"
    @cancel="cancel"
  >
    <a-form-model ref="form" :model="form" :rules="rules" slot="content" layout="vertical">
      <a-row :gutter="32">
        <a-col :span="12">
          <a-form-model-item label="网络ID" prop="networkId">
            <a-input v-model="form.networkId" placeholder="请输入网络ID"/>
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="网络名称" prop="networkName">
            <a-input v-model="form.networkName" placeholder="请输入网络名称"/>
          </a-form-model-item>
        </a-col>
      </a-row>
      <a-row :gutter="32">
        <a-col :span="12">
          <a-form-model-item label="网络模式" prop="dirver">
            <a-input v-model="form.dirver" placeholder="请输入网络模式"/>
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="作用范围" prop="scope">
            <a-input v-model="form.scope" placeholder="请输入作用范围"/>
          </a-form-model-item>
        </a-col>
      </a-row>
      <a-row :gutter="32">
        <a-col :span="12">
          <a-form-model-item label="网络创建时间" prop="networkCreateTime">
            <a-date-picker
              v-model="form.networkCreateTime"
              valueFormat="YYYY-MM-DD"
              :show-today="true"
              placeholder="选择日期"
              style="width: 100%"
            />
          </a-form-model-item>
        </a-col>
      </a-row>
    </a-form-model>
    <template slot="footer">
      <a-button :disabled="disabled" @click="cancel">
        取消
      </a-button>
      <a-button type="primary" :disabled="disabled" @click="submitForm(true)">
        保存
      </a-button>
    </template>
  </ant-modal>
</template>
<script>
import NetworkAddForm from './NetworkForm'
export default {
  ...NetworkAddForm
}
</script>
